<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 表格 </title>

    <style>
        table{
            border-collapse: collapse;
        }
        td,th{
            border:1px solid #999;
        }
    </style>
</head>
<body>
    <table>

<thead>
<tr>
    <th>姓名</th>
    <th>性别</th>
    <th>电话</th>
</tr>

</thead>


<tbody>


<tr>
    <!--跨行合并-->
<td >张三</td>
<td rowspan="2">男</td>
<td>1333333</td>
</tr>

<tr>

    <td>李四</td>
    
    <td>122222</td>
</tr>

<tr>
<!--跨列合并-->
    <td>小妹</td>
    <td colspan="2">未知</td>
    
</tr>

</tbody>

    </table>
</body>
</html>